package com.cgly.medical.controller;



import com.cgly.medical.util.Msg;
import org.springframework.web.bind.annotation.*;

/**
 * @author wangxiangli
 * @create 2021-09-10-17:59
 */
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin  //解决跨域问题
public class EduLoginController {

    @PostMapping("login")
    public Msg login(){
        return Msg.success().data("token","admin");
    }

    @GetMapping("info")
    public Msg info(){
        return Msg.success().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
